<?php
if (!defined("__WD__")) exit("Wrong Connect");

if ( !function_exists("_escape") ) {
	function _escape( $var ) {
		
		if ( is_array($var) ) {
			foreach( $var as $key => $value )
				$var[$key] = _escape($value);
			return $var;
		}
		else return addslashes($var);
		
	}
	
}

if ( !function_exists("_unescape") ) {
	function _unescape( $var ) {
		
		if ( is_array($var) ) {
			foreach( $var as $key => $value )
				$var[$key] = _unescape($value);
			return $var;
		}
		else return stripslashes($var);
		
	}
	
}